<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" />
<meta name="author" content="Nathan Smith" />
<title>PT. New Ratna Motor</title>
<link rel="stylesheet" href="<?php echo URL::base()?>assets/css/master.css" />
<link rel="stylesheet" href="<?php echo URL::base()?>assets/css/table.css" />
<link rel="stylesheet" href="<?php echo URL::base()?>assets/css/icon.css" />
<link rel="stylesheet" href="<?php echo URL::base()?>assets/css/form.css" />
<link rel="stylesheet" href="<?php echo URL::base()?>assets/css/superfish.css" media="screen">
<link rel="stylesheet" href="<?php echo URL::base()?>assets/js/tinymce/themes/advanced/skins/default/ui.css" />
<link rel="stylesheet" href="<?php echo URL::base()?>assets/js/tinymce/plugins/inlinepopups/skins/clearlooks2/window.css" />
<link rel="stylesheet" href="<?php echo URL::base()?>assets/css/themes/base/jquery.ui.all.css">
<link rel="stylesheet" href="<?php echo URL::base()?>assets/css/fancybox/jquery.fancybox-1.3.4.css" />
<link rel="stylesheet" href="<?php echo URL::base()?>assets/css/jquery.ui.timepicker.css?v=0.3.0" type="text/css" />
<link rel="stylesheet" href="<?php echo URL::base()?>assets/css/popup.css" />
<noscript>
<link rel="stylesheet" href="<?php echo URL::base()?>assets/css/mobile.min.css" />
</noscript>

<script>
var ADAPT_CONFIG = {
  path: '<?php echo URL::base()?>assets/css/',
  dynamic: true,
  range: [
    '0px    to 760px  = mobile.min.css',
    '760px  to 980px  = 720.min.css',
    '980px  to 1280px = 960.min.css',
    '1280px to 1600px = 1200.min.css',
    '1600px to 1940px = 1560.min.css',
    '1940px to 2540px = 1920.min.css',
    '2540px           = 2520.min.css'
  ]
};
</script>
<script src="<?php echo URL::base()?>assets/js/adapt.min.js"></script>
<script type="text/javascript" src="<?php echo URL::base()?>assets/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="<?php echo URL::base()?>assets/js/jquery-ui-1.8.19.custom.min.js"></script>
<script type="text/javascript" src="<?php echo URL::base()?>assets/js/superfish.js"></script>
<script src="<?php echo URL::base()?>assets/js/tinymce/jquery.tinymce.js" type="text/javascript"></script>
<script src="<?php echo URL::base()?>assets/js/jquery.fancybox-1.3.4.pack.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php echo URL::base()?>assets/js/jquery.ui.timepicker.js?v=0.3.0"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$("#fancy").fancybox({
				'scrolling'		: 'no',
				'titleShow'		: false,
				'onClosed'		: function() {
				    //$("#login_error").hide();
				}
		});
		$(".fancy").fancybox({
			'scrolling'		: 'no',
			'titleShow'		: false,
			'onClosed'		: function() {
			    //$("#login_error").hide();
			}
	    });
		$('#jam').timepicker();
		$( "#datepicker" ).datepicker({dateFormat: "yy-mm-dd"});
		$( "#datepicker1" ).datepicker({dateFormat: "yy-mm-dd"});
		$( "#datepicker2" ).datepicker({dateFormat: "yy-mm-dd"});

		$('.btnajax').live('click', function(){
			var allVals = [];
			allVals = $('input:checkbox[name="panggil[]"]:checked')
					       .map(function(i,n) {
        						return $(n).val();
    						}).get();
			var url = $(this).attr('href');
			$.ajax({
			    type: "POST",
			    url: url,   
			    data: {'panggil[]': allVals},
			    success: function(data) {
					$('.container').html(data);
					$('#jam').timepicker();
				}                                     
			   
			});
			return false;
		});
		
		$('textarea.tinymce').tinymce({
			// Location of TinyMCE script
			script_url : '<?php echo URL::base()?>assets/js/tinymce/tiny_mce.js',
	
			// General options
			theme : "advanced",
			plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist",
	
			// Theme options
			theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
			theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
			theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
			theme_advanced_toolbar_location : "top",
			theme_advanced_toolbar_align : "left",
			theme_advanced_statusbar_location : "bottom",
			theme_advanced_resizing : true,
	
			// Example content CSS (should be your site CSS)
			content_css : "css/content.css",
	
			// Drop lists for link/image/media/template dialogs
			template_external_list_url : "lists/template_list.js",
			external_link_list_url : "lists/link_list.js",
			external_image_list_url : "lists/image_list.js",
			media_external_list_url : "lists/media_list.js",
	
			// Replace values for the template plugin
			template_replace_values : {
				username : "Some User",
				staffid : "991234"
			}
		});
})//end jquery
</script> 
</head>
<body>
<div class="container_12 main">
  <div class="grid_12">
  	<div class="header">
  		<div>
    		<h1>HRD PT. NEW RATNA MOTOR</h1>
    	</div>
    </div>
  </div>
  <div class="grid_12">
  	<div class="menu">
    	<?php 
    	if(isset($menu))
    	{
    		echo $menu;
    	}
    	?>
    </div>
  </div>
  <div class="grid_12">
  	<div class="breadcrumb">
    	<div>
    		Path
        </div>
    </div>
  </div>
  <?php 
  if(isset($right))
  {
  ?>
  <div class="grid_9">
  <?php 
  }
  else
  {
  ?>
  <div class="grid_12">
  <?php 
  }
  ?>
  	<div class="container">
  		<div>
			<?php 
			if(isset($container))
			{
				echo $container;
			}
			
			?>
  		</div>
  	</div>
  </div>
  <?php 
  if(isset($right))
  {
  ?>
  <div class="grid_3">
  	<div class="left">
    	<div>
        	Left
        </div>
    </div>
  </div>
  <?php 
  }
  ?>
  <hr class="grid_12" />
  <div class="grid_12">
  	<div class="footer">
    	<div>
    		Footer
        </div>
    </div>
  </div>
</div>
</body>
</html>